﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ColRight.ascx.cs" Inherits="MyWeb.Control.Home.ColRight" %>
<div class="subrightindex">
    <div class="headright">
        Giỏ hàng
    </div>
    <div class="midright">
        <table>
            <tbody>
                <tr>
                    <td style="background-image:url(/Styles/img/ico-tongcong.gif);width:25px;background-repeat:no-repeat;" >
                        
                    </td>
                    <td class="cardtotal">
                        <asp:Label id="lblsoluong" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" align="left" style="padding-left: 30px">
                        <a href="/Module/Shop/GioHang.aspx" class="xemcard">
                            Xem giỏ hàng</a>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" align="left" style="padding-left: 30px">
                        <a href="#" class="xemcard">
                            Thanh toán</a>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
    <div class="bottomright">
    </div>
    <div class="headright">
        Hỗ trợ trực tuyến</div>
    <div class="midhotrott">
        <asp:ListView ID="lsvhotro" runat="server">
            <ItemTemplate>
                <div class="online">
                    <a href="ymsgr:sendim?<%#Eval("Yahoo") %>" style="text-decoration: none">
                        <img src="http://opi.yahoo.com/online?u=<%#Eval("Yahoo") %>&m=g&t=1" alt="<%#Eval("Name") %>"
                            border="0" align="middle"></a></div>
                <div class="onname1">
                    <%#Eval("Name") %><br />
                    <%#Eval("Phone") %></div>
            </ItemTemplate>
        </asp:ListView>
    </div>
    <div class="bottomright">
    </div>
    <div class="headright">
        Tin mới</div>
    <div class="midright">
        <asp:ListView ID="lsvtinmoi" runat="server">
            <ItemTemplate>
                <div class="noibat">
                    <a href="<%# Url(Eval("GroupNewId").ToString(),Eval("Id").ToString(),Eval("Name").ToString()) %>">
                        <img src="<%#Eval("Image") %>" align="left" title="<%#Eval("Name") %>" alt="<%#Eval("Name") %>"></a>
                    <a href="<%# Url(Eval("GroupNewId").ToString(),Eval("Id").ToString(),Eval("Name").ToString()) %>">
                        <%#Eval("Name") %></a>
                </div>
                <div class="clear">
                </div>
                <div class="gachleft">
                </div>
            </ItemTemplate>
        </asp:ListView>
    </div>
    <div class="bottomright">
    </div>
    <div class="headright">
        Thống kê truy cập</div>
    <div class="midright" style="padding-top: 5px;">         
  Đang Online: <%=Application["Online"].ToString()%><br />
  Hôm Nay: <%=Application["HomNay"].ToString()%><br />
  Tuần Này: <%=Application["TuanNay"].ToString()%><br />
  Tháng Này: <%=Application["ThangNay"].ToString()%><br />
  Tháng Trước: <%=Application["ThangTruoc"].ToString()%><br />
  Tổng Số: <%=Application["TatCa"].ToString()%><br />
     
    </div>
    <div class="bottomright">
    </div>
    <div class="advright">
        <asp:ListView ID="lsvquangcao" runat="server">
            <ItemTemplate>
                <a href="<%#Eval("Link") %>" target="_blank">
                    <img src="<%#Eval("Image")%>" style="border: 0px" width="150"></a>
            </ItemTemplate>
        </asp:ListView>
    </div>
<%--    <div class="headright">Thời tiết</div>
<div class="midright" style="margin:0;padding:0;margin-bottom:10px;">
<div style="border-bottom:1px solid #91BEE8; padding:0 5px;">
<table id="_ctl1__ctl5__ctl0_dl_thoitiethieitai" cellspacing="0" cellpadding="0" border="0" width="100%">
	<tr>
		<td>
					<table cellpadding="1" cellspacing="1" border="0" width="100%">
						<tr>
							<td class="name" width="50%">Đà Nẵng</td>
							<td class="nhietdo" width="32%">21°C</td>
							<td align=right width="20%"><img width="30px" src="http://www.khituongvietnam.gov.vn/web/Upload/WeatherSymbol/2008/8/22/260.gif"></td>
						</tr>
						<tr><td colspan=3 height="1px" bgcolor="#f1f1f1"></td></tr>
					</table>
				</td>
	</tr><tr>
		<td>
					<table cellpadding="1" cellspacing="1" border="0" width="100%">
						<tr>
							<td class="name" width="50%">Hải Phòng</td>
							<td class="nhietdo" width="32%">19°C</td>
							<td align=right width="20%"><img width="30px" src="http://www.khituongvietnam.gov.vn/web/Upload/WeatherSymbol/2008/8/22/260.gif"></td>
						</tr>
						<tr><td colspan=3 height="1px" bgcolor="#f1f1f1"></td></tr>
					</table>
				</td>
	</tr><tr>
		<td>
					<table cellpadding="1" cellspacing="1" border="0" width="100%">
						<tr>
							<td class="name" width="50%">Nha Trang</td>
							<td class="nhietdo" width="32%">27°C</td>
							<td align=right width="20%"><img width="30px" src="http://www.khituongvietnam.gov.vn/web/Upload/WeatherSymbol/2008/8/22/300.gif"></td>
						</tr>
						<tr><td colspan=3 height="1px" bgcolor="#f1f1f1"></td></tr>
					</table>
				</td>
	</tr><tr>
		<td>
					<table cellpadding="1" cellspacing="1" border="0" width="100%">
						<tr>
							<td class="name" width="50%">Pleiku</td>
							<td class="nhietdo" width="32%">24°C</td>
							<td align=right width="20%"><img width="30px" src="http://www.khituongvietnam.gov.vn/web/Upload/WeatherSymbol/2008/8/22/341.gif"></td>
						</tr>
						<tr><td colspan=3 height="1px" bgcolor="#f1f1f1"></td></tr>
					</table>
				</td>
	</tr><tr>
		<td>
					<table cellpadding="1" cellspacing="1" border="0" width="100%">
						<tr>
							<td class="name" width="50%">Sơn La</td>
							<td class="nhietdo" width="32%">17°C</td>
							<td align=right width="20%"><img width="30px" src="http://www.khituongvietnam.gov.vn/web/Upload/WeatherSymbol/2008/8/22/260.gif"></td>
						</tr>
						<tr><td colspan=3 height="1px" bgcolor="#f1f1f1"></td></tr>
					</table>
				</td>
	</tr><tr>
		<td>
					<table cellpadding="1" cellspacing="1" border="0" width="100%">
						<tr>
							<td class="name" width="50%">Tân Sơn Nhất</td>
							<td class="nhietdo" width="32%">29°C</td>
							<td align=right width="20%"><img width="30px" src="http://www.khituongvietnam.gov.vn/web/Upload/WeatherSymbol/2008/8/22/341.gif"></td>
						</tr>
						<tr><td colspan=3 height="1px" bgcolor="#f1f1f1"></td></tr>
					</table>
				</td>
	</tr><tr>
		<td>
					<table cellpadding="1" cellspacing="1" border="0" width="100%">
						<tr>
							<td class="name" width="50%">Hà Nội</td>
							<td class="nhietdo" width="32%">20°C</td>
							<td align=right width="20%"><img width="30px" src="http://www.khituongvietnam.gov.vn/web/Upload/WeatherSymbol/2008/8/22/300.gif"></td>
						</tr>
						<tr><td colspan=3 height="1px" bgcolor="#f1f1f1"></td></tr>
					</table>
				</td>
	</tr><tr>
		<td>
					<table cellpadding="1" cellspacing="1" border="0" width="100%">
						<tr>
							<td class="name" width="50%">Vinh</td>
							<td class="nhietdo" width="32%">19°C</td>
							<td align=right width="20%"><img width="30px" src="http://www.khituongvietnam.gov.vn/web/Upload/WeatherSymbol/2008/8/22/260.gif"></td>
						</tr>
						<tr><td colspan=3 height="1px" bgcolor="#f1f1f1"></td></tr>
					</table>
				</td>
	</tr>
</table>
			
</div>
</div>--%>
    <div class="headright">
        Tỷ giá</div>
    <div>
        <script src="http://vnexpress.net/Service/Forex_Content.js" type="text/javascript"></script>
        <script src="http://vnexpress.net/Service/Weather_Content.js" type="text/javascript"></script>
        <table border="1" bordercolor="#91BEE8" style="border-collapse: collapse; width: 100%"
            cellpadding="0" cellspacing="0">
            <script language="javascript">
                                for (i = 0; i < 11; i++) {
                                    //if (i == 0 || i == 10 || i == 2 || i == 1)
                                    //if (true)
                                    if (i != 2) {
                                        document.write("<tr><td width=\"50%\" style=\"text-align:left;padding-left:10px;\"> " + vForexs[i] + ":</td><td style=\"text-align:right;padding-right:10px;\">" + vCosts[i] + "</td></tr>");
                                    }
                                    else {
                                        var cny = vCosts[i];
                                        document.write("<tr><td width=\"50%\" style=\"text-align:left;padding-left:10px;\"> NDT :</td><td style=\"text-align:right;padding-right:10px;\">" + cny + "</td></tr>");
                                    }
                                }
            </script>
        </table>
    </div>
</div>
